package org.example.user.manage.service;


import org.example.commons.entity.SysHealthStatus;
import org.example.commons.service.IBaseService;
import org.example.user.manage.dto.SysHealthStatusDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;


/**
 * 健康状态 服务层
 *
 * @author bothin
 */
public interface ISysHealthStatusService extends IBaseService<SysHealthStatusDTO> {
    List<SysHealthStatusDTO> findByStatusIdIn(Long[] ids);

    SysHealthStatusDTO findByUserIdDTO(Long userId);
    SysHealthStatus findByUserId(Long userId);
    SysHealthStatus save(SysHealthStatus entity);
    Page<SysHealthStatusDTO> searchList(String name,  Integer healthStatus, Date[] dates, Pageable pageable);
    List<SysHealthStatus> queryLastStatusBydays(Integer days);
}
